I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.
sudo apt install gnome-shell gdm3
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
""" | |
How to use SQLAlchemy with numerical enums? | |
`IntEnum` class is taken from this article: [Using Python enums in SQLAlchemy models](https://michaelcho.me/article/using-python-enums-in-sqlalchemy-models/), all credits to the author. | |
""" | |
import datetime | |
import enum | |
from sqlalchemy import Integer, TypeDecorator, create_engine |
# List all the input devices | |
xinput --list | |
⎡ Virtual core pointer id=2 [master pointer (3)] | |
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | |
⎜ ↳ Broadcom Corp. Bluetooth USB Host Controller id=11 [slave pointer (2)] | |
⎜ ↳ bcm5974 id=13 [slave pointer (2)] | |
⎣ Virtual core keyboard id=3 [master keyboard (2)] | |
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] | |
↳ Power Button id=6 [slave keyboard (3)] |
Формат docker-compose.yml позволяет устанавливать значения по умолчанию.
${EXTRA_HOST_0:-host_0:127.0.0.1}
Таким образом, вы можете задать набор значений, которые в будущем могут быть заменены в .env.
.env
#EXTRA_HOST_0=host.docker.internal:host-gateway
#...
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
using UnityEditor; | |
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
// Object rendering code based on Dave Carlile's "Create a GameObject Image Using Render Textures" post | |
// Link: http://crappycoding.com/2014/12/create-gameobject-image-using-render-textures/ |
By default, Firefox automatically backs up your current bookmarks to a .json file under the current user profile, usually a path like ".mozilla/firefox/xxxx.default/bookmarkbackups". Some of us still like to work with the old-school HTML export instead.
To enable automatic backups of bookmarks to HTML, you need to add the following through either "about:config" or in the optional user.js config file (where customizations to prefs.js can be added). The backup will be created and then overwritten every time the browser is closed.
If doing this through about:config, search for browser.bookmarks.autoExportHTML (if it doesn't exist, create it as a boolean item), and set to true. Then create the browser.bookmarks.file item as a string item and enter the full path for the file (e.g., /home/myuser/bookmarks.html, where "myuser" is your login name on the system).
Before making the change in user.js (located at ~/.mozilla/firefox/xxx.default, if it doesn't exist c
// | |
// ContentView.swift | |
// AppleMusicLyricsPlayer | |
// | |
// Created by Magesh Sridhar on 2/5/23. | |
// | |
import SwiftUI | |
import AVKit |